import Layout from '@/layout/Layout'

const appointRouter = {
  path: '/appoint',
  component: Layout,
  redirect: 'noredirect',
  name: '预约管理',
  meta: {
    title: '预约管理',
    icon: 'fa-history'
  },
  children: [
    {
      path: 'appointManagement',
      component: () => import('@/views/appoint/AppointManagement'),
      name: 'AppointManagement',
      meta: { title: '我的预约', cache: true}
    },
    {
      path: 'appointAdd',
      component: () => import('@/views/appoint/AppointAdd'),
      name: '新增预约',
      meta: { title: '新增预约'}
    },
    {
      path: 'itemManagement',
      component: () => import('@/views/appoint/AppointItemManagement'),
      name: 'AppointItemManagement',
      meta: { title: '项目管理', cache: true}
    },
    {
      path: 'classifyManagement',
      component: () => import('@/views/appoint/ItemClassifyManagement'),
      name: 'ItemClassifyManagement',
      meta: { title: '项目分类', cache: true}
    }

  ]
}

export default appointRouter
